package cn.taobaoke.restful.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.*;
import java.io.Serializable;
import java.util.List;

/**
 * 文案
 * @author bjyangzuo
 * @since 2017-04-18 20:20
 */
@Getter
@Setter
@ToString
@Table(name = "tb_document")
@Entity
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","fieldHandler"})
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DocumentEntity implements Serializable {

    @Id
    @GeneratedValue
    private Long id;

    @Column(length = 1000)
    private String image;

    @Column
    private String description;

    @Column
    private String linkAddress;

    @Column
    private String template;

    @Column
    private String createTime;

    @Column
    private String publishTime;

    @Column
    private Boolean isDelete;

    @Column
    private Long domainId;

    @Transient
    private List<String> images;
}
